#ifndef _BITMAP_H_
#define _BITMAP_H_
typedef enum Bool { false = 0, true = 1 } bool;

struct _Bitmap;
typedef struct _Bitmap Bitmap;

extern Bitmap *bitmap_create(unsigned int length, unsigned char value);
extern void bitmap_destory(Bitmap **bits);
extern bool bitmap_set(Bitmap *bits, unsigned int pos, unsigned char value);
extern bool bitmap_get(Bitmap *bits, unsigned int pos, unsigned int *value);
extern unsigned int bitmap_length(Bitmap *bits);

#endif  // _!BITMAP_H_